gtk-demo/main: Suppress implicit fallthru warning
authorDaniel Boles <dboles.src@gmail.com>
Fri, 12 Oct 2018 21:09:42 +0000 (22:09 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Fri, 12 Oct 2018 21:19:25 +0000 (22:19 +0100)
commit9cbd3ac017a993889c5c663603db7867e0d4ed13
treec94df1182cc039b496cfd647f664425edba4a1ed
parentae3e6d194924a0369e824c1172fd34398ee5cd22
gtk-demo/main: Suppress implicit fallthru warning

Comments matched to reassure the compiler that fallthrough is
intentional are supposed to precede the case or default keywords, at
least in GCC, so the one here did not suppress the warning with GCC. We
can just the if condition and put the comment at the end to solve that.

https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
demos/gtk-demo/main.c